// BaseIpcHandler.js
class BaseIpcHandler {
    constructor(app) {
        // console.log(`${new.target}, app = ${app}`);
        if (new.target === BaseIpcHandler) {
            throw new TypeError('Cannot construct BaseIpcHandler instances directly');
        }
        this.app = app;
    }

    async handle(event, msg) {
        throw new Error("Handler method 'handle' must be implemented by subclass.");
    }
}

module.exports = BaseIpcHandler;
